package cn.whx.hrm.dto;

import cn.whx.hrm.domain.Course;
import cn.whx.hrm.domain.CourseDetail;
import cn.whx.hrm.domain.CourseMarket;

import javax.validation.constraints.NotNull;

public class Dto {
    @NotNull(message = "基本信息不能为空")
    private Course course;
    @NotNull(message = "商品信息不能为空")
    private CourseDetail courseDetail;
    @NotNull(message = "详情信息不能为空")
    private CourseMarket courseMarket;

    @Override
    public String toString() {
        return "Dto{" +
                "course=" + course +
                ", courseDetail=" + courseDetail +
                ", courseMarket=" + courseMarket +
                '}';
    }

    public Course getCourse() {
        return course;
    }

    public void setCourse(Course course) {
        this.course = course;
    }

    public CourseDetail getCourseDetail() {
        return courseDetail;
    }

    public void setCourseDetail(CourseDetail courseDetail) {
        this.courseDetail = courseDetail;
    }

    public CourseMarket getCourseMarket() {
        return courseMarket;
    }

    public void setCourseMarket(CourseMarket courseMarket) {
        this.courseMarket = courseMarket;
    }
}
